from django.urls import path
from rest_framework.routers import SimpleRouter
from rest_framework.routers import DefaultRouter
from .views import *
urlpatterns=[

]
router =DefaultRouter() #实例化，实例化一个默认路由器对象
router.register('article',ArticleViewSet)# 文章路由
router.register('comment',CommentViewSet)# 评论路由
urlpatterns +=router.urls
